{% if form.errors %}errors {{ form.errors }}<p>
{% endif %}
{% if form.non_field_errors %}non_field_errors {{ form.non_field_errors }}<p>
{% endif %}
<form method="post">
  {% if not blind %}
    <input type="range" min="0" max="1" step="0.1" value="0" name="user_miscommunication"/>
    <label for="user_miscommunication">You are misunderstood (never - always)</label>
    <br>
    <input type="range" min="0" max="1" step="0.1" value="0" name="foil_miscommunication"/>
    <label for="user_miscommunication">You misunderstand your partner (never - always)</label>
    <br>
  {% endif %}
    <button type="submit" name="user_intent" value="Trust">Trust</button>
    <button type="submit" name="user_intent" value="Distrust">Distrust</button>
    <input type="hidden" name="csrfmiddlewaretoken" value={{ csrf_token }}>
</form><p>
{% if journey %}
  {% with j_results=journey.results() %}
    {% if j_results %}
      You have guessed correctly {{j_results.correct_guesses }} of
      {{ j_results.completed_dialogs }} times, averaging
      {{ j_results.mean_exchanges }}
      exchanges per dialog.
    {% else %}
      You have not completed any dialogs yet.
    {% endif %}
    <br>
  {% endwith %}
  <a href="{{ blind_toggle_url }}">
  {% if blind %}
    choose the level of miscommunication
  {% else %}
    have the level of miscommunication be assigned
  {% endif %}
{% else %}
  <a href="{{ blind_toggle_url }}">
  {% if blind %}
    choose the level of miscommunication
  {% else %}
    have the level of miscommunication be assigned
  {% endif %}
{% endif %}
</a>
